package day05;

public class Gardener {
    public Fruit createFruit(String fruitType) {
        switch (fruitType) {
            case "Apple":
                return new Apple();
            case "Banana":
                return new Banana();
            case "Grape":
                return new Grape();
            default:
                return null;
        }
    }
}